package com.winning.ds.common.service.impl;

import com.winning.ds.common.config.multiDatasource.DataSource;
import com.winning.ds.common.dao.SysEsbSjyDao;
import com.winning.ds.common.entity.SysEsbSjyEntity;
import com.winning.ds.common.service.SysEsbSjyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @作者：caopengfei
 * @时间：2020/9/16
 */
@Service
public class SysEsbSjyServiceImpl implements SysEsbSjyService {

    @Autowired
    private SysEsbSjyDao sysEsbSjyDao;

    @Override
    @DataSource(DataSource.index)
    public SysEsbSjyEntity queryDataSource(String key) {
        return sysEsbSjyDao.selectById(key);
    }

    @Override
    @DataSource(DataSource.index)
    public void deleteById(String sjyid) {
        sysEsbSjyDao.deleteById(sjyid);
    }

}
